package com.gopay.common.cps.dao.gsrt.impl;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.gopay.common.base.dao.impl.BaseDAOImpl;
import com.gopay.common.cps.dao.gsrt.GsrtTenderBidstateSubDao;
import com.gopay.common.domain.gsrt.GsrtTenderBidstateSub;
@Repository("gsrtTenderBidstateSubDao")
public class GsrtTenderBidstateSubDaoImpl extends BaseDAOImpl<GsrtTenderBidstateSub, Serializable> implements GsrtTenderBidstateSubDao {

	@Override
	public List<GsrtTenderBidstateSub> findTenderBidSub(long tenderId) {
		String hql = "from GsrtTenderBidstateSub where  custTenderMasterId=:custTenderMasterId order by createdTs asc ";
		Map<String, Object> param = new HashMap<String, Object>();
		param.put("custTenderMasterId", tenderId);
		List<GsrtTenderBidstateSub> list = this.findByHql(hql, param);
		return list;
	}
	
	

}
